package com.zjpavt.taiyuan.controller;

import com.zjpavt.taiyuan.controller.base.ResponseCode;
import com.zjpavt.taiyuan.controller.base.ResponseResult;
import com.zjpavt.taiyuan.model.DeviceImageInfo;
import com.zjpavt.taiyuan.service.deviceImageInfo.DeviceImageInfoService;
import com.zjpavt.taiyuan.service.deviceImageInfo.DeviceImageInfoSo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: zhuliangyu
 * @Date: 2019/10/10 13:22
 * @Description:
 */
@RestController
@RequestMapping("/deviceImageInfo")
public class DeviceImageInfoController {
	@Resource
	private DeviceImageInfoService deviceImageInfoService;

	@RequestMapping("/selectAll")
	public String selectAll(){
		List<DeviceImageInfoSo> deviceImageInfoSos = deviceImageInfoService.selectAll();
		return new ResponseResult(ResponseCode.SUCCESS,"查询成功",deviceImageInfoSos).toString();
	}
}
